import {User} from '../../models/User';
export class UserUpdateDto{

  static toUser(userId:string,body:any):User
  {
    var user = new User();
    user.username = body.username;
    user.nickname = body.nickname;
    user.password = body.password;
    user.avatar = body.avatar;
    user._id = userId;
    user.createdAt = new Date();
    return user;
  }
}
